<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Movement Register</title>
</head>
<body>

<form name="Search" action="./MovementRegister" method="get">
<table>
<tr><td><input type="submit" name="preMonth" value="Previous Month"><input type="submit" name="curMonth" value="Current Month"><input type="submit"  name="nexMonth" value="Next Month"></td></tr>
</table>
</form>

<c:if test="${flagList0}">
  <table>
<tr>
<td>No record was found!</td>
</tr>
</c:if>

 <c:if test="${flagList}">
	<table border="1">
		<tr>
			<td>Name</td>
			<td>Application Date</td>
			<td>Duration</td>
			<td>StartDate</td>
			<td>EndDate</td>
		</tr>
		
			<c:forEach items="${requestScope.LeaveInfo}" var="listSort">
			<tr>
				<td>${listSort._userName}</td>
				<td>${listSort._applicationDate}</td>
				<td>${listSort._duration}</td>
				<td>${listSort._startDate}</td>
				<td>${listSort._endDate}</td>
		</c:forEach>
	</table>
	</c:if>



</body>
</html>